/* routes-list */

const APP_NAME = process.env.VUE_APP_NAME;

const App = () => import('./App.vue');
const User = () => import('./views/user/index.vue');
const User_details = () => import('./views/user_details/index.vue');

export default [
  {
    path: `/${APP_NAME}`,
    name: APP_NAME,
    redirect: { name: `${APP_NAME}.home` },
    component: App,
    meta: {
      title: '用户',
      icon: 'microxiangmu',
    },
    children: [
      {
        path: 'user',
        name: `${APP_NAME}.user`,
        component: User,
        meta: {
          title: '添加用户',
          icon: 'microxiangmu',
        },
      },
      {
        path: 'user_details',
        name: `${APP_NAME}.user_details`,
        component: User_details,
        meta: {
          title: '用户信息',
          icon: 'microxiangmu',
        },
      },
    ],
  },
];
